package com.baosight.sczx.common.zm.cInterface.ch;

import java.math.BigDecimal;

import com.baosight.iplat4j.core.spring.SpringApplicationContext;
import com.baosight.iplat4j.dao.Dao;
import com.baosight.sczx.common.zm.basetools.StaticTools;

/**
 * <p>Title: CoalYield.java</p>
 * <p>Description: 生产进度旬汇报对外接口</p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2002</p>
 * <p>Company: Baosight Software</p>
 * @author ww
 * @version 1.0
 * <pre>Histroy:
 *          2016-9-2 10:52:43  王伟  Create
 *</pre>
 */
public class ProduceReport {
	private static Dao dao = (Dao)SpringApplicationContext.getBean("dao");


	/**
	 * 从生产进度旬报中取得掘进量的年、月累计值。
	 * @param type 类型：1表示月累计，2表示年累计
	 * @param fdVirtualDate 调度日期
	 * @param fdMiningId  
	 * @return
	 */
	public static BigDecimal getGrubsum(int type,String fdVirtualDate,String fdMiningId){
		BigDecimal grubSum = null;
		String year = StaticTools.getYearStr(fdVirtualDate);
		String month = StaticTools.getMonthStr(fdVirtualDate); 
		String reportId = getTendayReportId(year,month,fdMiningId);
		return grubSum;
		
	}

    /**
     * 得到当前 
     * @param year
     * @param month
     * @param fdMiningId
     * @return
     */
	private static String getTendayReportId(String year, String month,
			String fdMiningId) {
		// TODO Auto-generated method stub
		
		return null;
	}

}
